<%@ page language="java" import="java.util.*,office.BusiUtil" pageEncoding="UTF-8"%>
<%@include file="/common/jsp/taglibs-nojs-nocss.jsp"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";
%>
<base href="<%=basePath%>"/>
<div id="pop_up_content">
	<div class="pop_up_title images_1">
		领导批示
	</div>
	<div class="pop_up_body">
		<form id="thisForm" action="personPlan/saveLeaderInstructions.action" method="post" >
		<table border="0" cellpadding="0" cellspacing="0"  width="400">
			<tr>
				<td>
					<div class="form_input_value">
						批示人:
					</div>
				</td>
				<td>
					<input type="text" name="leaderInstructionsVo.userCname" value="<s:property value='#session.user.userCname'/>">
					<input type="hidden" name="leaderInstructionsVo.planId" value="<s:property value="#parameters.id"/>">
				</td>
			</tr>
			<tr>
				<td valign="top">
					<div class="form_input_value">
						批示内容:
					</div>
				</td>
				<td>
					<textarea id='content' name='leaderInstructionsVo.content' class='dialogy_input max_length:100 required' rows='' cols='' style='width:320px;height:150px;overflow-y:scroll;overflow-x:hidden;margin-left: 8px;'><s:property value="leaderInstructionsVo.content"/></textarea>
				</td>
			</tr>
			<tr>
				<td></td>
				<td>
					<input id="thisButton" type="button" value="提交" class="btn" onclick="return validateDate();" onmouseout="this.className='btn'" onmousedown="this.className='btn1'" onmouseover="this.className='btn2'">
					<input type="button" value="取消" class="btn" onclick="hideDialog();" onmouseout="this.className='btn'" onmousedown="this.className='btn1'" onmouseover="this.className='btn2'">
				</td>
			</tr>
		</table>
		</form>
	</div>
</div>
<script type="text/javascript">
/* 表单提交 */
i.formSubmit("thisButton",	//绑定的按钮id
			  "thisForm" ,   //提交的表单id
			  function(result){
				  	var jsonMsgObj=new JsonMsgObj(result);
					var  msg=jsonMsgObj.getMessage();
				    var codeId=jsonMsgObj.getCodeid();
					var isOk=jsonMsgObj.getIsok();
					if( isOk ){
					    aerouiAlert(msg);
						hideDialog();// 隐藏窗口
						window.location.reload();
					}else{		// 如果编辑失败了
					  JsManageInfoHandleException( result , function(msg , codeId , isOk){
					  		hideDialog();// 隐藏窗口
					   });
				   }
				});
</script>
